﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Tradex.Market;
using Tradex.Trading;

namespace Tradex.Messages {

    /// <summary>
    /// An InstrumentRequest requets basid information about an instrument from the receiver, as
    /// given in the corresponding InstrumentUpdate message.
    /// </summary>
    [Serializable()]
    public class InstrumentRequest : Message {

        /// <summary>
        /// The public constructor taking the InstrumentKey for the instrument requested.
        /// </summary>
        /// <param name="instrumentKey"></param>
        public InstrumentRequest (InstrumentKey instrumentKey) {
            InstrumentKey = instrumentKey;
        }

        /// <inheritdoc />
        public override MessageCode Code { get { return MessageCode.InstrumentRequest; } }

        /// <summary>
        /// Gets the InstrumentKey.
        /// </summary>
        public InstrumentKey InstrumentKey { get; private set; }

    }
}
